{% extends "template.html" %}{% load i18n wger_extras django_bootstrap_breadcrumbs %}
{% block template %}


    {% if trainer_identity %}
        <div class="alert alert-info" style="margin-top: 1em;">
            {% blocktranslate with current_user=user|format_username %}You are
                browsing the site as the user "{{ current_user }}", all actions are performed on
                their data.
            {% endblocktranslate %}
            <a href="{% url 'core:user:trainer-login' trainer_identity %}" class="alert-link">
                {% blocktranslate with target=user.userprofile.gym.name trimmed %}Back to "{{ target }}"{% endblocktranslate %}
            </a>
        </div>
    {% endif %}


    {% if not hide_title_and_options %}
        <div class="row">
            <div class="col-sm-8">
                <h2 id="page-title" class="page-header">
                    {% block title %}{% endblock %}
                </h2>
            </div>
            <div class="col-sm-4">
                <div class="btn-group">

                    {% block options %}
                    {% endblock %}
                </div>
            </div>
        </div>
    {% endif %}



    <div class="row">
        <div class="col-sm-12" id="main-content">
            {% if messages and not no_messages %}
                {% for message in messages %}
                    <div
                        class="alert {% if message.tags == 'warning' %}alert-error{% elif message.tags == 'info' %}alert-info{% elif message.tags == 'success' %}alert-success{% endif %}">
                        <a href="#" class="close extra-bold" data-bs-dismiss="alert">&times;</a>
                        {{ message }}
                    </div>
                {% endfor %}
            {% endif %}

            {% render_breadcrumbs "django_bootstrap_breadcrumbs/bootstrap3.html" %}

            <div id="content">
                {% block content %}{% endblock %}
            </div>
        </div>
    </div>
{% endblock %}
